package org.ezplatform.office.forum.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.ezplatform.core.annotation.MetaData;
import org.ezplatform.core.entity.BaseCorpEntity;

/**
 * @desc 论坛积分扣减实体类
 * @create 2017-11-14 20:08
 **/
@MetaData(value = "论坛积分扣减")
@Entity(name = "ForumIntegralRecord")
@Table(name = "oa_forum_integral_record", uniqueConstraints = { @UniqueConstraint(columnNames = "id") })
public class ForumIntegralRecord extends BaseCorpEntity {

    private static final long serialVersionUID = -1633409975032489554L;
    
    /**
     * 用户姓名
     */
    @MetaData(value = "用户姓名")
    @Column(name = "username")
    private String username;
    
    /**
     * 用户id
     */
    @MetaData(value = "用户id")
    @Column(name = "userid")
    private String userid;
    
    /**
     * 用户账号
     */
    @MetaData(value = "用户账号")
    @Column(name = "useraccount")
    private String useraccount;
    
    /**
     * 操作人账号
     */
    @MetaData(value = "操作人账号")
    @Column(name = "reduce_account")
    private String reduceAccount;
    
    /**
     * 操作备注
     */
    @MetaData(value = "操作备注")
    @Column(name = "reduce_mark")
    private String reduceMark;
    
    /**
     * 扣减分数
     */
    @MetaData(value = "扣减分数")
    @Column(name = "reduce_score")
    private int reduceScore;
    
    /**
     * 剩余分数
     */
    @MetaData(value = "剩余分数")
    @Column(name = "total_score")
    private int totalScore;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUseraccount() {
		return useraccount;
	}

	public void setUseraccount(String useraccount) {
		this.useraccount = useraccount;
	}

	public String getReduceAccount() {
		return reduceAccount;
	}

	public void setReduceAccount(String reduceAccount) {
		this.reduceAccount = reduceAccount;
	}

	public String getReduceMark() {
		return reduceMark;
	}

	public void setReduceMark(String reduceMark) {
		this.reduceMark = reduceMark;
	}

	public int getReduceScore() {
		return reduceScore;
	}

	public void setReduceScore(int reduceScore) {
		this.reduceScore = reduceScore;
	}

	public int getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(int totalScore) {
		this.totalScore = totalScore;
	}

}
